package com.jymj.service;

import com.jymj.entity.RtInvestEntity;
import com.jymj.entity.view.RtInvestTask;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Created by dl on 2017/10/15.
 */
public interface RtInvestService {

    RtInvestEntity queryObject(Integer id);

    RtInvestEntity queryObjectByRefid(Integer id);

    List<RtInvestTask> queryList(Map map);

    List<RtInvestEntity> queryListWithChild(Map map);

    void save(RtInvestEntity investEntity);

    void update(RtInvestEntity investEntity);

    void deleteById(int id);

    void updateParentCost(RtInvestEntity investEntity);

    void updateHjCost(RtInvestEntity investEntity);

    BigDecimal queryYzfCost(Integer pid, Integer itemid);

    List<RtInvestEntity> queryRtInvestList(Map map);

    void saveRtInvest(RtInvestEntity rtInvestEntity);

    void updateRtInvest(RtInvestEntity rtInvestEntity);

    void updateRtInvestCost(RtInvestEntity rtInvestEntity);

    void updateZj(Integer pjid);
}
